
clear
set more off

quiet: do "1. American Dream Prepare Variables.do"

gen outparty_pos1 = .
gen outparty_pos2 = .
gen outparty_neg1 = .
gen outparty_neg2 = .

replace outparty_pos1 = traits_dem_1 if pid>4
replace outparty_pos1 = traits_rep_1 if pid<4

replace outparty_pos2 = traits_dem_2 if pid>4
replace outparty_pos2 = traits_rep_2 if pid<4

replace outparty_neg1 = traits_dem_3 if pid>4
replace outparty_neg1 = traits_rep_3 if pid<4

replace outparty_neg2 = traits_dem_4 if pid>4
replace outparty_neg2 = traits_rep_4 if pid<4


log using "American Dream Reliability and FA.log", replace
	
	*positive outparty
	alpha outparty_pos1 outparty_pos2
	factor outparty_pos1 outparty_pos2, pcf
	
	*negative outparty
	alpha outparty_neg1 outparty_neg2
	factor outparty_neg1 outparty_neg2, pcf
	
log close
